package com.bl.weilan.dao.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "trade_institution")
@ApiModel(value = "TradeInstitutionEntity", description = "行业-机构对照表")
@DynamicInsert
@DynamicUpdate
public class TradeInstitutionEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "行业id")
    @Column(name = "trade_id")
    private String tradeId;

    @ApiModelProperty(value = "机构id")
    @Column(name = "institution_id")
    private String institutionId;

    private int num;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;
}
